"""
@author: wy
@file: 大小字母数字统计.py
@time: 2023/11/17 20:21
"""
x = input("请输入一个字符串:")
a = [0, 0, 0, 0]
for i in x:
    if 'A' <= i <= 'Z':
        a[0] += 1
    elif 'a' <= i <= 'z':
        a[1] += 1
    elif '0' <= i <= '9':
        a[2] += 1
    else:
        a[3] += 1

print("大写字母、小写字母、数字、其他字符的个数分别为：",a)
